﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WeaponApplication.logging;
using entities;

namespace weapon
{
    public class HeroFactory
    {
        private static ILogger logger = LoggerFactory.CreateLogger();
        
        public Hero Create()
        {
            //TODO: Создать героя и положть в сумку оружие
            Hero hero = new Hero();
            hero.Name = "God";

            Bag bag = new Bag();
            hero.Bag = bag;

            Firearms firearm = new Firearms();
            firearm.Name = "Ak-74";
            firearm.Damage = 10;
            bag.Add(firearm);

            Melee melee = new Melee();
            melee.Name = "Axe";
            melee.Damage = 10;
            bag.Add(melee);

            Missile missile = new Missile();
            melee.Name = "Pg-7";
            melee.Damage = 100;
            bag.Add(missile);

            logger.Log("Weapon is created");
            return hero;
        }
    }
}
